import Cocoa

//string -> data
let str = "this is a banana"

let data1 = str.data(using: .utf8)
let data2 = Data(str.utf8)

//data -> string
let str1 = String(
    decoding: data1!,
    as: UTF8.self
)
let str2 = String(
    data: data2,
    encoding: .utf8
)
data2.base64EncodedString()
print()

URL.homeDirectory
URL.documentsDirectory
URL.cachesDirectory
URL.temporaryDirectory
